<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 18-2-6
 * Time: 下午2:51
 */

namespace common\models;

use Yii;

/**
 * Class ManualPics
 * @package common\models
 *
 * @property Custom $custom
 */
class ManualPics extends \common\models\base\ManualPics
{
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'created_at' => Yii::t('app', 'Created At'),
            'picurl' => Yii::t('app', '图片URL'),
            'picnote' => Yii::t('app', '注释'),
            'picid' => Yii::t('app', '图片类型'),
        ];
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getCustom()
    {
        return $this->hasOne(Custom::className(), ['id' => 'custom_id']);
    }
}